package com.example.petstore.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@TableName("orders")
public class Order {
    public int orderid;
    public String username;
    @TableField(value = "orderdate", fill = FieldFill.INSERT)
    private LocalDate orderDate;
    private String shipaddr1;
    private String shipaddr2;
    private String shipcity;
    private String shipstate;
    private String shipzip;
    private String shipcountry;
    private String billaddr1;
    private String billaddr2;
    private String billcity;
    private String billstate;
    private String billzip;
    private String billcountry;
    @TableField(fill = FieldFill.INSERT)
    private String courier;
    private double totalprice;
    private String billtofirstname;
    private String billtolastname;
    private String shiptofirstname;
    private String shiptolastname;
    private String creditcard;
    private String exprdate;
    private String cardtype;
    private String locale;
    private boolean ispay;/*是否付款*/
    private boolean issend;/*是否发货*/
    private String sendnumber;
    private boolean isget;/*是否收货*/
    private boolean isreturn;/*是否退货*/
    private boolean iscancel;/*是否取消订单*/
    private String outtradeno;

}
